package gtkwire.gobject;

/**
* This object is not thread safe.
*/
public class GtkTreeRowIter extends GtkTreeRow
{

	public GtkTreeRowIter( String path, GtkTreeModel gTreeModel )
	{
		super( path, gTreeModel );
	}

	public GtkTreeRowIter( int index, int level, int[] indices, GtkTreeModel gTreeModel )
	{
		super( index, level, indices, gTreeModel );
	}


	protected GtkTreeRowIter( GtkTreeRow treeRow )
	{
		super( treeRow );
	}

	public void next(){ index++; }
	public void prev()
	{ 
		index--;
		if( index < 0 ) index = 0;
	}
	public void up()
	{
		if( level == 19 ) return;
		indices[ level ] = index;
		level++;
		index = 0;
	}

	public void down()
	{
		if( level == 0 ) return;
		level--;
		index = indices[ level ];
	}


	/**
	* Sets result of lastOpOutOfRange() true if current address not valid row
	*/
	public void probe()
	{

	}

	/**
	* Returns true if last get, set or probe operation was performed on tree adress that points to a not existant row.
	*/
	public boolean lastOpOutOfRange()
	{
		return false;
	}

}//end class